<?php

return array (
		'name'    => 'FormUserGroup',
		'method'  => 'post',
		'action'  => '',
		'options' => array(),
			
		'elements' => array(
				/*
				 * ID
				 */
				array(
						'name'       => 'id',
						'required'   => true,
						'attributes' => array(
								'type'  => 'hidden',
						),
						'filters' => array(
								array('name'    => 'Int'),
						),
				),
					
				/*
				 * User Group name
				 */
				array(
						'name'     => 'name',
						'required' => true,
						'attributes' => array(
								'type'  => 'text',
								'class' => 'text'
						),
						'options' => array(
								'label' => 'Group Name',
						),
						'filters'  => array(
								array('name' => 'StripTags'),
								array('name' => 'StringTrim'),
						),
						'validators' => array(
								array(
										'name'    => 'StringLength',
										'options' => array(
												'encoding' => 'UTF-8',
												'min'      => 1,
												'max'      => 100,
										),
								),
						),
				),
					
					
				/*
				 * Submit
				 */
				array(
						'name' => 'submit',
						'attributes' => array(
								'type'  => 'submit',
								'value' => 'Save',
								'id' => 'submitbutton',
						),
				)
		),
			
);
